package com.bsoft.gol.hcs.clinical.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import hcn.base.TreatmentApplicationRecordDetail;

public abstract  class TreatmentApplicationRecordDetailDAO extends HibernateSupportDelegateDAO<TreatmentApplicationRecordDetail> {

    @DAOMethod
    public abstract TreatmentApplicationRecordDetail getByTreatmentId(String treatmentId);

    @DAOMethod(sql = "delete from TreatmentApplicationRecordDetail where treatmentId =:treatmentId ")
    public abstract void deleteByTreatmentId(@DAOParam("treatmentId")String treatmentId);

}
